import request from "./request.js"

export let firstlist = () => {
    return request.get('/api/category/list');

}

export let twolist = (params = {}) => {
    return request.get('/api/category/subcate', { params });

}

export let dianpulist = () => {
    return request.get('/api/index/nav');

}

export let swipe = () => {
    return request.get('/api/index/banner');

}

export let zhide = ()=>{
    return request.get("/api/index/goodlist");
}

export let zhucefun = (params = {})=>{
    return request.post("/api/user/register",params);
}

export let denglfun = (params = {})=>{
    return request.post("/api/user/login",params);
}